package soamonitor


class CheckStatusJob {
   static triggers = {
    simple name: 'mySimpleTrigger', repeatInterval: 50000  
  }
  
  def serviceUtilsService
   
   
  def execute(){
	  	def service = Service.list()	
		service.each {
			//Check status of endPoint
			it.status = serviceUtilsService.checkStatus(it.endPoint)	
		}
  }

}
